home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000247_news@columbia.edu _Wed Mar 20 16:25:07 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id QAA16248 for <kermit.misc@watsun>; Wed, 20 Mar 1996 16:25:05 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id QAA22140 for kermit.misc@watsun; Wed, 20 Mar 1996 16:24:58 -0500 (EST)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: 7 vs 8 terminal bits with expect
  8. Date: 20 Mar 1996 21:24:50 GMT
  9. Organization: Columbia University
  10. Lines: 31
  11. Message-ID: <4ipt32$ljp@apakabar.cc.columbia.edu>
  12. References: <gerlachDoKunp.2o7@netcom.com>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <gerlachDoKunp.2o7@netcom.com>,
  16. Matthew H. Gerlach <gerlach@netcom.com> wrote:
  17. : Currently I am using a PERL based implementation of EXPECT with
  18. : kermit to perform serial based automated testing of products we sell.
  19. : I prefer this method rather than writing straight kermit scripts because
  20. : perl has such wonderful pattern matching capabilities.
  21. : For completeness I am running with CKermit 190 on a SunOS 4.1.4 machine.
  22. : Anyway there is a pseudo tty between kermit and my perl script.  The
  23. : script reads and writes to this pseudo ttya, and then kermit reads and 
  24. : writes out the serial port. 
  25. : kermit gets fired up with the following command:
  26. :  kermit -Y -l /dev/ttyA2 -b 38400 <continued...>
  27. :  -C "set flow RTS/CTS, set term byte 8, log session ttyA2, connect"
  28. : So here is my problem: the box kermit it talking to sends 8 bit
  29. : characters.  The most significant bit is set when a particular attribute
  30. : is turned on.  Even when this attribute is turned on, kermit masks the
  31. : MSB before delivering the byte to my perl program.  When I use kermit
  32. : directly it shows the plain ascii character with MSB stripped as well.
  33. : In short, how do I get access to this most significant bit?  
  34. As explained in the user manual, "Using C-Kermit", page 88, the command is:
  35.  
  36.   SET COMMAND BYTESIZE 8
  37.  
  38. - Frank